/*** server ***/
package main;

import comm.Communication;

public class Main {

    private static int state;
    private static int port = 4445;

    public static void setState(int state) {
        Main.state = state;
    }

    public static int getState() {
        return state;
    }

    public static int getPort() {
        return port;
    }

    public static void main(String[] args) {
        if(args.length == 1) port = Integer.valueOf(args[0]);
        new Communication().connect();
    }
}